Skip to main content

Database Entities Documentation

ShortUrl

Represents a shortened version of an original URL with a unique short code.

ColumnTypeDescription
idnumberPrimary key, auto-generated identifier.
originalUrlstringThe original full URL to be shortened.
shortCodestringA unique short code representing the shortened URL.
createdAtDateTimestamp when the short URL entry was created.

Unique Constraints

  • shortCode must be unique across all short URLs.